#pragma once
#include "PrimitiveParser.h"

class TriangleParser :
	public PrimitiveParser
{
public:
	float x1,y1,z1,x2,y2,z2,x3,y3,z3;
	float nx,ny,nz;
	float length, height, p3_length; 

	TriangleParser(void);
	~TriangleParser(void);

	Primitive getType() {return TRIANGLE;}

	TriangleParser(float x1, float y1, float z1, float x2, float y2, float z2, float x3 , float y3, float z3, string tx_id, string mat_id);

	void render();
	void render(TextureParser* tx);
};

